<template>
  <div id="navbar">
    <nav-bar :title="title" left-arrow @click-left="onClickLeft"> </nav-bar>
  </div>
</template>

<script>
import { NavBar } from 'vant'
export default {
  components: {
    NavBar
  },
  props: {
    title: {
      type: String,
      default: '首页'
    },
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped></style>
